package com.buddy.design.pattern._05strategy.promotion;

public class PromotionActivity {

    PromotionStrategy promotionStrategy;

    /*
     * 通过构造方法选择优惠策略
     */
    public PromotionActivity(PromotionStrategy promotionStrategy){
       this.promotionStrategy = promotionStrategy;
    }

    public void execute(){
        promotionStrategy.doPromotion();
    }
}
